package com.ysy.tz.mfg.entity;

public class BaseEntity {
    private Integer enterpriseId;
    private String systemId;
    private int pageNum = 1;
    private int pageSize = 20;
    private String keyWord;

    public BaseEntity() {
    }

    public Integer getEnterpriseId() {
        return this.enterpriseId;
    }

    public String getSystemId() {
        return this.systemId;
    }

    public int getPageNum() {
        return this.pageNum;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public String getKeyWord() {
        return this.keyWord;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BaseEntity)) {
            return false;
        } else {
            BaseEntity other = (BaseEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getPageNum() != other.getPageNum()) {
                return false;
            } else if (this.getPageSize() != other.getPageSize()) {
                return false;
            } else {
                label52: {
                    Object this$enterpriseId = this.getEnterpriseId();
                    Object other$enterpriseId = other.getEnterpriseId();
                    if (this$enterpriseId == null) {
                        if (other$enterpriseId == null) {
                            break label52;
                        }
                    } else if (this$enterpriseId.equals(other$enterpriseId)) {
                        break label52;
                    }

                    return false;
                }

                Object this$systemId = this.getSystemId();
                Object other$systemId = other.getSystemId();
                if (this$systemId == null) {
                    if (other$systemId != null) {
                        return false;
                    }
                } else if (!this$systemId.equals(other$systemId)) {
                    return false;
                }

                Object this$keyWord = this.getKeyWord();
                Object other$keyWord = other.getKeyWord();
                if (this$keyWord == null) {
                    if (other$keyWord != null) {
                        return false;
                    }
                } else if (!this$keyWord.equals(other$keyWord)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseEntity;
    }

    public int hashCode() {
        int result = 1;
        result = result * 59 + this.getPageNum();
        result = result * 59 + this.getPageSize();
        Object $enterpriseId = this.getEnterpriseId();
        result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode());
        Object $systemId = this.getSystemId();
        result = result * 59 + ($systemId == null ? 43 : $systemId.hashCode());
        Object $keyWord = this.getKeyWord();
        result = result * 59 + ($keyWord == null ? 43 : $keyWord.hashCode());
        return result;
    }

    public String toString() {
        return "BaseEntity(enterpriseId=" + this.getEnterpriseId() + ", systemId=" + this.getSystemId() + ", pageNum=" + this.getPageNum() + ", pageSize=" + this.getPageSize() + ", keyWord=" + this.getKeyWord() + ")";
    }
}
